import request from '@/utils/request'

// 查询资料类型列表
export function listZiliaotype(query) {
  return request({
    url: '/ziliao/ziliaotype/list',
    method: 'get',
    params: query
  })
}

export function listZiliaotypeAll(query) {
  return request({
    url: '/ziliao/ziliaotype/listAll',
    method: 'get',
    params: query
  })
}

// 查询资料类型详细
export function getZiliaotype(id) {
  return request({
    url: '/ziliao/ziliaotype/' + id,
    method: 'get'
  })
}

// 新增资料类型
export function addZiliaotype(data) {
  return request({
    url: '/ziliao/ziliaotype',
    method: 'post',
    data: data
  })
}

// 修改资料类型
export function updateZiliaotype(data) {
  return request({
    url: '/ziliao/ziliaotype',
    method: 'put',
    data: data
  })
}

// 删除资料类型
export function delZiliaotype(id) {
  return request({
    url: '/ziliao/ziliaotype/' + id,
    method: 'delete'
  })
}
